AEPutParamDesc
AppleEvent * theAppleEvent ; Apple Event to add parameter to AEDesc * theAEDesc ; descriptor record for the parameter converts them into a parameter that it adds to an Apple event.
The parameter theAppleEvent is the Apple event to which you are adding a
parameter.
The parameter theAEKeyword is the keyword for the parameter. If there was
already a parameter with this keyword in the Apple event, it is replaced.
The parameter theAEDesc is the descriptor record for the parameter.
For an example program showing usage of this routine, see the description of
Result codes
noErr (0) No error
memFullErr (-108) Not enough room in heap zone
errAEWrongDataType (-1703) Wrong descriptor type
errAENotAEDesc (-1704) Not a valid descriptor record
errAEBadListItem (-1705) Operation involving a list item failed